cmake_minimum_required(VERSION 3.19)
project(eaim_system)

#解决控制台中文乱码问题
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -fexec-charset=GBK")

set(CMAKE_CXX_STANDARD 14)
aux_source_directory(${PROJECT_SOURCE_DIR}/include SOURCE_INCLUDE)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/dao SOURCE_DAO)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/entity SOURCE_ENTITY)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/vo SOURCE_VO)
aux_source_directory(${PROJECT_SOURCE_DIR}/src/service SOURCE_SERVICE)



include_directories(include)

MESSAGE("INCLUDE:")
MESSAGE("${SOURCE_INCLUDE}")

MESSAGE("ENTITY:")
MESSAGE("${SOURCE_ENTITY}")

add_subdirectory(src)

add_executable(eaim_system src/main.cpp
        ${SOURCE_INCLUDE}
        ${SOURCE_DAO}
        ${SOURCE_ENTITY}
        ${SOURCE_VO}
        ${SOURCE_SERVICE}
        )